#include <time.h>
#include "Lightning.h"

Lightning::Lightning() : flashesCount(0), flashesInSeries(0) {
}

unsigned int const Lightning::begin() {
    return NO_ERROR;
}

unsigned int const Lightning::tick(tick_t const ticks, time_t const time) {
    if (time >= nextSeriesTime) { // start flash
    }

    if (flashesInSeries == 0) {
        // 1. do timeout here
        // 2. Init series
    }
    return NO_ERROR;
}
